﻿<s:SurfaceUserControl 
  x:Class="SurfaceCardsGameKit.DeckUC"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:s="http://schemas.microsoft.com/surface/2008"
  xmlns:local="clr-namespace:SurfaceCardsGameKit"
  MaxHeight="{Binding Height}"
  xmlns:lib="clr-namespace:SurfaceCardsBoardLibrary;assembly=SurfaceCardsBoardLibrary"
  xmlns:ssg="clr-namespace:Microsoft.Surface.Presentation.Generic;assembly=Microsoft.Surface.Presentation.Generic"
>

  <s:SurfaceUserControl.Resources>

    <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />

    <DrawingBrush x:Key="BackLeft" Stretch="Fill">
      <DrawingBrush.Drawing>
        <DrawingGroup>
          <DrawingGroup.Children>
            <GeometryDrawing Brush="#FFDBDBDB" Geometry="F1 M 106.598,361.574L 103.583,361.579C 47.0984,361.579 1.30872,315.79 1.30872,259.305L 1.30872,103.853C 1.30872,47.3692 47.0984,1.57941 103.583,1.57941L 106.594,1.58453L 106.598,361.574 Z "/>
            <GeometryDrawing Geometry="F1 M 106.595,361.46L 103.738,361.454C 47.2533,361.454 1.46368,315.665 1.46368,259.18L 1.46368,103.728C 1.46368,47.2438 47.2533,1.45416 103.738,1.45416L 106.597,1.45331">
              <GeometryDrawing.Pen>
                <Pen LineJoin="Round" Brush="#FFFFFFFF"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 106.595,362.382L 104.097,362.387C 46.8819,362.387 0.5,316.005 0.5,258.79L 0.5,104.098C 0.5,46.883 46.8819,0.50116 104.097,0.50116L 106.594,0.500061">
              <GeometryDrawing.Pen>
                <Pen LineJoin="Round" Brush="#FFBABABA"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
          </DrawingGroup.Children>
        </DrawingGroup>
      </DrawingBrush.Drawing>
    </DrawingBrush>
    <DrawingBrush x:Key="BackMiddle" Stretch="Fill">
      <DrawingBrush.Drawing>
        <DrawingGroup>
          <DrawingGroup.Children>
            <GeometryDrawing Geometry="F1 M 239.784,361.222L 106.596,361.456">
              <GeometryDrawing.Pen>
                <Pen LineJoin="Round" Brush="#FFFFFFFF"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <GeometryDrawing Brush="#FFDBDBDB" Geometry="F1 M 106.591,1.58502L 239.793,1.8194L 239.793,361.357L 106.596,361.574L 106.591,1.58502 Z "/>
            <GeometryDrawing Geometry="F1 M 106.602,1.45819L 239.789,1.68707">
              <GeometryDrawing.Pen>
                <Pen LineJoin="Round" Brush="#FFFFFFFF"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 106.601,0.505554L 239.789,0.718323">
              <GeometryDrawing.Pen>
                <Pen LineJoin="Round" Brush="#FFBABABA"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 239.793,362.155L 106.596,362.383">
              <GeometryDrawing.Pen>
                <Pen LineJoin="Round" Brush="#FFBABABA"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
          </DrawingGroup.Children>
        </DrawingGroup>
      </DrawingBrush.Drawing>
    </DrawingBrush>
    <DrawingBrush x:Key="TopLeft" Stretch="Fill">
      <DrawingBrush.Drawing>
        <DrawingGroup>
          <DrawingGroup.Children>
            <GeometryDrawing Geometry="F1 M 94.3773,0.642761C 94.6221,0.858582 44.3044,13.1221 59.9207,96.9297C 62.6981,111.836 78.0884,139.136 43.726,170.194C 28.4149,184.033 -1.13519,251.771 10.969,304.938C 10.969,304.938 0.487549,284.452 0.487549,257.935L 0.331299,103.247C 0.331299,103.247 -0.563477,65.6873 26.5189,35.3517C 41.0877,19.0328 63.8044,4.62213 94.3773,0.642761 Z ">
              <GeometryDrawing.Brush>
                <ImageBrush Stretch="None" Viewport="0,0,450,300" ImageSource="pack://application:,,,/Resources/DeckBackground.png" 
                                            Opacity="0.5" TileMode="Tile" ViewportUnits="Absolute">
                  <ImageBrush.Transform>
                    <MatrixTransform Matrix="0.32,0,0,0.32,812.831,901.271"/>
                  </ImageBrush.Transform>
                </ImageBrush>
              </GeometryDrawing.Brush>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 95.3236,0.35968C 95.5706,0.577332 43.8206,13.7718 60.4999,97.1733C 63.4998,112.173 78.8286,139.753 44.1619,171.086C 28.7151,185.048 -1.90234,255.181 11.5632,306.506C 11.5632,306.506 0.000732422,286.346 0.000732422,259.594L 0.098938,103.595C 0.098938,103.595 -0.821472,65.2974 26.5007,34.6931C 41.1987,18.2296 64.5112,2.99518 95.3236,0.35968 Z ">
              <GeometryDrawing.Brush>
                <LinearGradientBrush StartPoint="0.585302,0.00720827" EndPoint="1.71494,0.00720827">
                  <LinearGradientBrush.RelativeTransform>
                    <TransformGroup>
                      <SkewTransform CenterX="0.585302" CenterY="0.00720827" AngleX="29.408" AngleY="0"/>
                      <RotateTransform CenterX="0.585302" CenterY="0.00720827" Angle="123.012"/>
                    </TransformGroup>
                  </LinearGradientBrush.RelativeTransform>
                  <LinearGradientBrush.GradientStops>
                    <GradientStop Color="#B3FFFFFF" Offset="0"/>
                    <GradientStop Color="#B3444444" Offset="1"/>
                  </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
              </GeometryDrawing.Brush>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 90.6566,2.13251C 90.9034,2.35028 44.5062,17.8426 60.2455,96.8455C 63.2344,111.848 78.5742,139.425 43.9075,170.759C 28.4608,184.72 -1.28015,253.62 11.1364,302.475">
              <GeometryDrawing.Pen>
                <Pen LineJoin="Round" Brush="#FFFFFFFF"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
          </DrawingGroup.Children>
        </DrawingGroup>
      </DrawingBrush.Drawing>
    </DrawingBrush>

    <DrawingBrush x:Key="DeckPropriétéAction" Stretch="Uniform">
      <DrawingBrush.Drawing>
        <DrawingGroup>
          <DrawingGroup.Children>
            <GeometryDrawing Geometry="F1 M 142.161,0.667572C 220.56,0.667572 284.114,64.2222 284.114,142.621C 284.114,221.02 220.56,284.574 142.161,284.574C 63.7625,284.574 0.207764,221.02 0.207764,142.621C 0.207764,64.2222 63.7625,0.667572 142.161,0.667572 Z ">
              <GeometryDrawing.Brush>
                <LinearGradientBrush StartPoint="0.513249,0.0470635" EndPoint="0.513249,1.20654">
                  <LinearGradientBrush.GradientStops>
                    <GradientStop Color="#FF030E81" Offset="0"/>
                    <GradientStop Color="#FF0017FF" Offset="0.360731"/>
                    <GradientStop Color="#FF6471FC" Offset="0.673485"/>
                    <GradientStop Color="#FFC8CCFA" Offset="0.908676"/>
                  </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
              </GeometryDrawing.Brush>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 141.953,0C 220.352,0 283.907,63.5547 283.907,141.953C 283.907,220.352 220.352,283.907 141.953,283.907C 63.5547,283.907 0,220.352 0,141.953C 0,63.5547 63.5547,0 141.953,0 Z ">
              <GeometryDrawing.Brush>
                <RadialGradientBrush RadiusX="0.500001" RadiusY="0.5" Center="0.499999,0.5" GradientOrigin="0.499999,0.5">
                  <RadialGradientBrush.GradientStops>
                    <GradientStop Color="#000010B8" Offset="0.817352"/>
                    <GradientStop Color="#80000C8A" Offset="0.904109"/>
                    <GradientStop Color="#FF01095D" Offset="1"/>
                  </RadialGradientBrush.GradientStops>
                  <RadialGradientBrush.RelativeTransform>
                    <TransformGroup/>
                  </RadialGradientBrush.RelativeTransform>
                </RadialGradientBrush>
              </GeometryDrawing.Brush>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 142.127,25.7122C 206.135,25.7122 258.023,77.6005 258.023,141.608C 258.023,205.615 206.135,257.504 142.127,257.504C 78.1196,257.504 26.2314,205.615 26.2314,141.608C 26.2314,77.6005 78.1196,25.7122 142.127,25.7122 Z ">
              <GeometryDrawing.Brush>
                <LinearGradientBrush StartPoint="0.478005,0.439583" EndPoint="0.478005,1.0783">
                  <LinearGradientBrush.GradientStops>
                    <GradientStop Color="#00FFFFFF" Offset="0.00913242"/>
                    <GradientStop Color="#2FFFFFFF" Offset="0.872146"/>
                    <GradientStop Color="#5CFFFFFF" Offset="1"/>
                  </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
              </GeometryDrawing.Brush>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 143.097,26.0228C 189.875,26.0228 227.796,44.9138 227.796,68.217C 227.796,91.5202 189.875,110.411 143.097,110.411C 96.319,110.411 58.3982,91.5202 58.3982,68.217C 58.3982,44.9138 96.319,26.0228 143.097,26.0228 Z ">
              <GeometryDrawing.Brush>
                <LinearGradientBrush StartPoint="0.476041,-0.133763" EndPoint="0.476041,0.829203">
                  <LinearGradientBrush.GradientStops>
                    <GradientStop Color="#FFFFFFFF" Offset="0"/>
                    <GradientStop Color="#80FFFFFF" Offset="0.000381001"/>
                    <GradientStop Color="#00FFFFFF" Offset="0.735161"/>
                  </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
              </GeometryDrawing.Brush>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 118.432,242.502C 118.432,242.502 144.493,266.302 179.159,240.302">
              <GeometryDrawing.Pen>
                <Pen Thickness="2" LineJoin="Round" Brush="#FF000000"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 162.639,235.608C 162.639,235.608 149.242,248.277 133.826,237.635">
              <GeometryDrawing.Pen>
                <Pen Thickness="2" LineJoin="Round" Brush="#FF000000"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 145.566,32.4531C 145.566,32.4531 103.447,16.2955 82.8564,45.4834">
              <GeometryDrawing.Pen>
                <Pen Thickness="2" LineJoin="Round" Brush="#FF000000"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <GeometryDrawing Geometry="F1 M 102.17,45.6886C 102.17,45.6886 113.113,32.3939 123.798,40.2971">
              <GeometryDrawing.Pen>
                <Pen Thickness="2" LineJoin="Round" Brush="#FF000000"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <ImageDrawing ImageSource="../Resources/DeckProprieteAction_files/image0.png" Rect="92,45,132,177"/>
            <ImageDrawing ImageSource="../Resources/DeckProprieteAction_files/image1.png" Rect="73,48,192,156"/>
            <GeometryDrawing Brush="#FF00C800" Geometry="F1 M 216.257,62.2515L 199.98,73.6019">
              <GeometryDrawing.Pen>
                <Pen Thickness="2" LineJoin="Round" Brush="#FF000000"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <GeometryDrawing Brush="#FF00C800" Geometry="F1 M 88.5255,160.484L 99.1559,175.895">
              <GeometryDrawing.Pen>
                <Pen Thickness="2" LineJoin="Round" Brush="#FF000000"/>
              </GeometryDrawing.Pen>
            </GeometryDrawing>
            <ImageDrawing ImageSource="../Resources/DeckProprieteAction_files/image2.png" Rect="33,103,220,141"/>
          </DrawingGroup.Children>
        </DrawingGroup>
      </DrawingBrush.Drawing>
    </DrawingBrush>

    <Style TargetType="{x:Type s:SurfaceToggleButton}" x:Key="MosaicButtonStyle">
      <Setter Property="MinWidth" Value="20" />
      <Setter Property="MinHeight" Value="20" />
      <Setter Property="Template">
        <Setter.Value>
          <ControlTemplate TargetType="{x:Type s:SurfaceToggleButton}">
            <Grid>
              <Rectangle x:Name="rectangle" Fill="{StaticResource MosaicClique}"/>
              <Rectangle x:Name="rectangle1" Fill="{StaticResource MosaicNonClique}" Visibility="Collapsed"/>
            </Grid>
            <ControlTemplate.Triggers>
              <!--<Trigger Property="{Binding IsMozaicChecked}" Value="True">
                <Setter Property="Visibility" TargetName="rectangle" Value="Visible"/>
                <Setter Property="Visibility" TargetName="rectangle1" Value="Collapsed"/>
              </Trigger>-->
              <Trigger Property="IsChecked" Value="True">
                <Setter Property="Visibility" TargetName="rectangle" Value="Collapsed"/>
                <Setter Property="Visibility" TargetName="rectangle1" Value="Visible"/>
              </Trigger>
            </ControlTemplate.Triggers>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    <Style TargetType="{x:Type s:SurfaceToggleButton}" x:Key="EyeButtonStyle">
      <Setter Property="MinWidth" Value="20" />
      <Setter Property="MinHeight" Value="20" />
      <Setter Property="Template">
        <Setter.Value>
          <ControlTemplate TargetType="{x:Type s:SurfaceToggleButton}">
            <Grid>
              <Rectangle x:Name="rectangle" Fill="{StaticResource OeilClique}"/>
              <Rectangle x:Name="rectangle1" Fill="{StaticResource OeilNonClique}" Visibility="Collapsed"/>
            </Grid>
            <ControlTemplate.Triggers>
              <Trigger Property="IsChecked" Value="True">
                <Setter Property="Visibility" TargetName="rectangle" Value="Collapsed"/>
                <Setter Property="Visibility" TargetName="rectangle1" Value="Visible"/>
              </Trigger>
            </ControlTemplate.Triggers>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    <Storyboard x:Key="StoryboardActive" RepeatBehavior="Forever" AutoReverse="True" Storyboard.TargetName="pathLeft">
      <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="pathLeft" 
	      Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0.396"/>
        <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
      </DoubleAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="pathLeft" 
	      Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[2].(GradientStop.Offset)">
        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
        <SplineDoubleKeyFrame KeyTime="00:00:02" Value="0.57"/>
        <SplineDoubleKeyFrame KeyTime="00:00:02.4000000" Value="0.997"/>
      </DoubleAnimationUsingKeyFrames>
      <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="pathLeft" Duration="00:00:00.0010000" 
	      Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
        <SplineColorKeyFrame KeyTime="00:00:00" Value="#000017FF"/>
      </ColorAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="pathLeft" Duration="00:00:00.0010000" 
	      Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
      </DoubleAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="pathLeft" 
	      Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[3].(GradientStop.Offset)">
        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0.739"/>
        <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
      </DoubleAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="pathLeft" 
	      Storyboard.TargetProperty="(Shape.StrokeThickness)" Duration="00:00:00.0010000">
        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="3"/>
      </DoubleAnimationUsingKeyFrames>
    </Storyboard>

    <Style x:Key="PropertiesElementMenuStyle" TargetType="{x:Type s:ElementMenu}">
      <Setter Property="IsSubmenuOpen" Value="False"/>
      <Setter Property="ActivationMode" Value="AlwaysActive"/>
      <Setter Property="Width" Value="20" />
      <Setter Property="Height" Value="20" />

      <Setter Property="Template">
        <Setter.Value>

          <ControlTemplate TargetType="{x:Type s:ElementMenu}">
            <ControlTemplate.Resources>
              <Storyboard x:Key="IsEnabledTrue">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="1"/>
              </Storyboard>
              <Storyboard x:Key="IsPressedTrue">
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[0].(GradientStop.Color)" To="#4DFFFFFF"/>
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Color)" To="#27FFFFFF"/>
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Color)" To="Transparent"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[0].(GradientStop.Offset)" To="0.3347"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Offset)" To="0.7387"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Offset)" To="0.9407"/>
                <ThicknessAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Center" Storyboard.TargetProperty="(FrameworkElement.Margin)" To="10"/>
              </Storyboard>
              <Storyboard x:Key="IsEnabledFalse">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.3"/>
              </Storyboard>
              <Storyboard x:Key="IsActiveFalse">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetProperty="Opacity" To="0"/>
              </Storyboard>
              <Storyboard x:Key="IsActiveTrue">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetProperty="Opacity" To="1"/>
              </Storyboard>
              <Storyboard x:Key="IsPressedFalse">
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[0].(GradientStop.Color)" To="#4D000000"/>
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Color)" To="#27000000"/>
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Color)" To="#00000000"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[0].(GradientStop.Offset)" To="0.461864"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Offset)" To="0.642675"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Offset)" To="0.838983"/>
                <ThicknessAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Center" Storyboard.TargetProperty="(FrameworkElement.Margin)" To="13.5"/>
              </Storyboard>
            </ControlTemplate.Resources>
            <Grid x:Name="Content" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="1">
              <Grid x:Name="VisualContent" HorizontalAlignment="Center" VerticalAlignment="Center" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Opacity="1">
                <Ellipse Fill="Transparent" Margin="-2.5"/>
                <Ellipse x:Name="Shadow" Stretch="Fill" Margin="1" IsHitTestVisible="False">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.5" RadiusY="0.5">
                      <GradientStop Color="#00000000" Offset="0"/>
                      <GradientStop Color="#00000000" Offset="0.461864"/>
                      <GradientStop Color="#4D000000" Offset="0.461864"/>
                      <GradientStop Color="#27000000" Offset="0.642675"/>
                      <GradientStop Color="#00000000" Offset="0.838983"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="Bg" Fill="{TemplateBinding Background}" Margin="1" IsHitTestVisible="False"/>
                <Ellipse x:Name="Fill" Stretch="Fill" IsHitTestVisible="False" Visibility="Visible" Margin="-2">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.5" RadiusY="0.5">
                      <GradientStop Color="#32FFFFFF" Offset="0.669492"/>
                      <GradientStop Color="Transparent" Offset="0.788136"/>
                      <GradientStop Color="#3AFFFFFF" Offset="0.833065"/>
                      <GradientStop Color="#73FFFFFF" Offset="0.851695"/>
                      <GradientStop Color="Transparent" Offset="0.932203"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="OrbitV" Stretch="Fill" Margin="13.5" IsHitTestVisible="False" Visibility="Collapsed">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.625005" RadiusY="0.5">
                      <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                          <RotateTransform Angle="90" CenterX="0.5" CenterY="0.5"/>
                        </TransformGroup>
                      </RadialGradientBrush.RelativeTransform>
                      <GradientStop Color="#00000000" Offset="0.131356"/>
                      <GradientStop Color="#147F7F7F" Offset="0.584746"/>
                      <GradientStop Color="#27FFFFFF" Offset="0.694915"/>
                      <GradientStop Color="#207F7F7F" Offset="0.864407"/>
                      <GradientStop Color="#1A000000" Offset="1"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="OrbitH" Stretch="Fill" Margin="13.5" IsHitTestVisible="False" Visibility="Collapsed">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.5" RadiusY="0.3">
                      <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                          <RotateTransform Angle="180" CenterX="0.5" CenterY="0.5"/>
                        </TransformGroup>
                      </RadialGradientBrush.RelativeTransform>
                      <GradientStop Color="#D9FFFFFF" Offset="0"/>
                      <GradientStop Color="#6DFFFFFF" Offset="0.433155"/>
                      <GradientStop Color="Transparent" Offset="1"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="Ring" Stretch="Fill" Margin="13.5" IsHitTestVisible="False" Visibility="Collapsed">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.5" RadiusY="0.5">
                      <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                          <RotateTransform Angle="90" CenterX="0.5" CenterY="0.5"/>
                        </TransformGroup>
                      </RadialGradientBrush.RelativeTransform>
                      <GradientStop Color="Transparent" Offset="0"/>
                      <GradientStop Color="Transparent" Offset="0.652542"/>
                      <GradientStop Color="#60FFFFFF" Offset="0.804555"/>
                      <GradientStop Color="#BFFFFFFF" Offset="0.889831"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="Center" Stretch="Fill" Margin="13.5" IsHitTestVisible="False" Visibility="Collapsed">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="1" RadiusY="1">
                      <GradientStop Color="White" Offset="0"/>
                      <GradientStop Color="#80FFFFFF" Offset="0.171324"/>
                      <GradientStop Color="Transparent" Offset="0.372881"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
              </Grid>
              <ItemsPresenter x:Name="Items" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </Grid>
            <ControlTemplate.Triggers>
              <Trigger Property="IsActive" Value="True">
                <Trigger.EnterActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetProperty="Opacity" To="1"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetProperty="Opacity" To="0"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.ExitActions>
              </Trigger>
              <Trigger Property="IsEnabled" Value="False">
                <Trigger.EnterActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.3"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="1"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.ExitActions>
              </Trigger>
              <Trigger Property="IsPressed" Value="True">
                <Trigger.EnterActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[0].(GradientStop.Color)" To="#4DFFFFFF"/>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Color)" To="#27FFFFFF"/>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Color)" To="Transparent"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[0].(GradientStop.Offset)" To="0.3347"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Offset)" To="0.7387"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Offset)" To="0.9407"/>
                      <ThicknessAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Center" Storyboard.TargetProperty="(FrameworkElement.Margin)" To="10"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[0].(GradientStop.Color)" To="#4D000000"/>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Color)" To="#27000000"/>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Color)" To="#00000000"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[0].(GradientStop.Offset)" To="0.461864"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Offset)" To="0.642675"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Offset)" To="0.838983"/>
                      <ThicknessAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Center" Storyboard.TargetProperty="(FrameworkElement.Margin)" To="13.5"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.ExitActions>
              </Trigger>
            </ControlTemplate.Triggers>
          </ControlTemplate>

        </Setter.Value>
      </Setter>
    </Style>

    <Style x:Key="baseElementMenuItem" TargetType="{x:Type s:ElementMenuItem}">
      <Setter Property="Width" Value="60" />
      <Setter Property="Height" Value="60" />

      <Setter Property="Template">
        <Setter.Value>
          <ControlTemplate TargetType="{x:Type s:ElementMenuItem}">
            <ControlTemplate.Resources>
              <Storyboard x:Key="IsEnabledTrue">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="1"/>
              </Storyboard>
              <Storyboard x:Key="IsSubmenuOpenTrue">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="ContentHeaderGrid" Storyboard.TargetProperty="(UIElement.Opacity)" To="0.5"/>
              </Storyboard>
              <Storyboard x:Key="IsPressedFalse">
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Color)" To="#4D000000"/>
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[3].(GradientStop.Color)" To="#27000000"/>
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[4].(GradientStop.Color)" To="#00000000"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Offset)" To="0.461864"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Offset)" To="0.461864"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[3].(GradientStop.Offset)" To="0.642675"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[4].(GradientStop.Offset)" To="0.838983"/>
                <ThicknessAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Center" Storyboard.TargetProperty="(FrameworkElement.Margin)" To="13.5"/>
              </Storyboard>
              <Storyboard x:Key="IsEnabledFalse">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.3"/>
              </Storyboard>
              <Storyboard x:Key="IsActiveTrue">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetProperty="Opacity" To="1"/>
                <BooleanAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.5000000" FillBehavior="Stop" SpeedRatio="2" Storyboard.TargetProperty="IsHitTestVisible">
                  <DiscreteBooleanKeyFrame KeyTime="00:00:00" Value="False"/>
                  <DiscreteBooleanKeyFrame KeyTime="00:00:00.2500000" Value="True"/>
                </BooleanAnimationUsingKeyFrames>
              </Storyboard>
              <Storyboard x:Key="IsActiveFalse">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetProperty="Opacity" To="0"/>
              </Storyboard>
              <Storyboard x:Key="IsPressedTrue">
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Color)" To="#4DFFFFFF"/>
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[3].(GradientStop.Color)" To="#27FFFFFF"/>
                <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[4].(GradientStop.Color)" To="Transparent"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Offset)" To="0.3347"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Offset)" To="0.3347"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[3].(GradientStop.Offset)" To="0.7387"/>
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[4].(GradientStop.Offset)" To="0.9407"/>
                <ThicknessAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Center" Storyboard.TargetProperty="(FrameworkElement.Margin)" To="10"/>
              </Storyboard>
              <Storyboard x:Key="IsSubmenuOpenFalse">
                <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="ContentHeaderGrid" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
              </Storyboard>
            </ControlTemplate.Resources>
            <Grid x:Name="Content" HorizontalAlignment="Center" VerticalAlignment="Center" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Opacity="1">
              <Grid x:Name="VisualContent">
                <Ellipse Fill="Transparent"/>
                <Ellipse x:Name="Shadow" Stretch="Fill" Margin="9" IsHitTestVisible="False">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.5" RadiusY="0.5">
                      <GradientStop Color="#00000000" Offset="0"/>
                      <GradientStop Color="#00000000" Offset="0.461864"/>
                      <GradientStop Color="#4D000000" Offset="0.461864"/>
                      <GradientStop Color="#27000000" Offset="0.642675"/>
                      <GradientStop Color="#00000000" Offset="0.838983"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="Bg" Fill="{TemplateBinding Background}" Margin="9" IsHitTestVisible="False"/>
                <Ellipse x:Name="Fill" Stretch="Fill" Margin="6" IsHitTestVisible="False">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.5" RadiusY="0.5">
                      <GradientStop Color="#32FFFFFF" Offset="0.669492"/>
                      <GradientStop Color="Transparent" Offset="0.788136"/>
                      <GradientStop Color="#3AFFFFFF" Offset="0.833065"/>
                      <GradientStop Color="#73FFFFFF" Offset="0.851695"/>
                      <GradientStop Color="Transparent" Offset="0.932203"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="OrbitV" Stretch="Fill" Margin="13.5" IsHitTestVisible="False" Visibility="Collapsed">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.625005" RadiusY="0.5">
                      <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                          <RotateTransform Angle="90" CenterX="0.5" CenterY="0.5"/>
                        </TransformGroup>
                      </RadialGradientBrush.RelativeTransform>
                      <GradientStop Color="#00000000" Offset="0.131356"/>
                      <GradientStop Color="#147F7F7F" Offset="0.584746"/>
                      <GradientStop Color="#27FFFFFF" Offset="0.694915"/>
                      <GradientStop Color="#207F7F7F" Offset="0.864407"/>
                      <GradientStop Color="#1A000000" Offset="1"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="OrbitH" Stretch="Fill" Margin="13.5" IsHitTestVisible="False" Visibility="Collapsed">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.5" RadiusY="0.3">
                      <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                          <RotateTransform Angle="180" CenterX="0.5" CenterY="0.5"/>
                        </TransformGroup>
                      </RadialGradientBrush.RelativeTransform>
                      <GradientStop Color="#D9FFFFFF" Offset="0"/>
                      <GradientStop Color="#6DFFFFFF" Offset="0.433155"/>
                      <GradientStop Color="Transparent" Offset="1"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="Ring" Stretch="Fill" Margin="13.5" IsHitTestVisible="False" Visibility="Collapsed">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="0.5" RadiusY="0.5">
                      <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                          <RotateTransform Angle="90" CenterX="0.5" CenterY="0.5"/>
                        </TransformGroup>
                      </RadialGradientBrush.RelativeTransform>
                      <GradientStop Color="Transparent" Offset="0"/>
                      <GradientStop Color="Transparent" Offset="0.652542"/>
                      <GradientStop Color="#60FFFFFF" Offset="0.804555"/>
                      <GradientStop Color="#BFFFFFFF" Offset="0.889831"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <Ellipse x:Name="Center" Stretch="Fill" Margin="13.5" IsHitTestVisible="False" Visibility="Collapsed">
                  <Ellipse.Fill>
                    <RadialGradientBrush RadiusX="1" RadiusY="1">
                      <GradientStop Color="White" Offset="0"/>
                      <GradientStop Color="#80FFFFFF" Offset="0.171324"/>
                      <GradientStop Color="Transparent" Offset="0.372881"/>
                    </RadialGradientBrush>
                  </Ellipse.Fill>
                </Ellipse>
                <ContentPresenter x:Name="Icon" Margin="13.5" IsHitTestVisible="False" Content="{TemplateBinding Icon}" ContentSource="Icon">
                  <ContentPresenter.OpacityMask>
                    <RadialGradientBrush>
                      <GradientStop Color="White" Offset="0.9"/>
                      <GradientStop Color="Transparent" Offset="0.98"/>
                    </RadialGradientBrush>
                  </ContentPresenter.OpacityMask>
                </ContentPresenter>
              </Grid>
              <Grid HorizontalAlignment="Center" VerticalAlignment="Center" IsHitTestVisible="false">
                <Decorator Height="{TemplateBinding ActualHeight}" Width="{TemplateBinding ActualWidth}">
                  <Grid Name="ContentHeaderGrid" HorizontalAlignment="Center" VerticalAlignment="Center">
                    <ssg:SurfaceShadowChrome Name="ContentHeaderShadow" Color="#FFFFFF" />
                    <ContentPresenter Name="ContentHeader" ContentSource="Header" VerticalAlignment="Center" HorizontalAlignment="Center" />
                  </Grid>
                </Decorator>
              </Grid>
              <ItemsPresenter x:Name="Items" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </Grid>
            <ControlTemplate.Triggers>
              <Trigger Property="IsActive" Value="True">
                <Trigger.EnterActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetProperty="Opacity" To="1"/>
                      <BooleanAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.5000000" FillBehavior="Stop" SpeedRatio="2" Storyboard.TargetProperty="IsHitTestVisible">
                        <DiscreteBooleanKeyFrame KeyTime="00:00:00" Value="False"/>
                        <DiscreteBooleanKeyFrame KeyTime="00:00:00.2500000" Value="True"/>
                      </BooleanAnimationUsingKeyFrames>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetProperty="Opacity" To="0"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.ExitActions>
              </Trigger>
              <Trigger Property="IsEnabled" Value="False">
                <Trigger.EnterActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.3"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="1"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.ExitActions>
              </Trigger>
              <Trigger Property="IsPressed" Value="True">
                <Trigger.EnterActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Color)" To="#4DFFFFFF"/>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[3].(GradientStop.Color)" To="#27FFFFFF"/>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[4].(GradientStop.Color)" To="Transparent"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Offset)" To="0.3347"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Offset)" To="0.3347"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[3].(GradientStop.Offset)" To="0.7387"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[4].(GradientStop.Offset)" To="0.9407"/>
                      <ThicknessAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Center" Storyboard.TargetProperty="(FrameworkElement.Margin)" To="10"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Color)" To="#4D000000"/>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[3].(GradientStop.Color)" To="#27000000"/>
                      <ColorAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[4].(GradientStop.Color)" To="#00000000"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[1].(GradientStop.Offset)" To="0.461864"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[2].(GradientStop.Offset)" To="0.461864"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[3].(GradientStop.Offset)" To="0.642675"/>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Shadow" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops).[4].(GradientStop.Offset)" To="0.838983"/>
                      <ThicknessAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="Center" Storyboard.TargetProperty="(FrameworkElement.Margin)" To="13.5"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.ExitActions>
              </Trigger>
              <Trigger Property="IsSubmenuOpen" Value="True">
                <Trigger.EnterActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="ContentHeaderGrid" Storyboard.TargetProperty="(UIElement.Opacity)" To="0.5"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                  <BeginStoryboard>
                    <Storyboard>
                      <DoubleAnimation Duration="00:00:00.5000000" SpeedRatio="2" Storyboard.TargetName="ContentHeaderGrid" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.ExitActions>
                <Setter Property="Panel.ZIndex" Value="1"/>
              </Trigger>
              <Trigger Property="IsSubmenuOpen" Value="False">
                <Setter Property="Panel.ZIndex" Value="0"/>
              </Trigger>
              <Trigger Property="Header" Value="">
                <Setter Property="UIElement.Visibility" TargetName="ContentHeaderShadow" Value="Collapsed"/>
              </Trigger>
              <Trigger Property="Header" Value="{x:Null}">
                <Setter Property="UIElement.Visibility" TargetName="ContentHeaderShadow" Value="Collapsed"/>
              </Trigger>
            </ControlTemplate.Triggers>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type s:ElementMenuItem}, ResourceId=ItemStyleKey}" 
           TargetType="{x:Type s:ElementMenuItem}"
           BasedOn="{StaticResource baseElementMenuItem}">
    </Style>

    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type s:ElementMenuItem}, ResourceId=HeaderStyleKey}" 
           TargetType="{x:Type s:ElementMenuItem}"
           BasedOn="{StaticResource baseElementMenuItem}">
    </Style>

  </s:SurfaceUserControl.Resources>

  <s:SurfaceUserControl.Style>
    <Style TargetType="{x:Type local:DeckUC}">
      <Style.Triggers>

        <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type s:ScatterViewItem}}, Path=IsActive}" Value="true">
          <Setter Property="IsActive" Value="true" />
        </DataTrigger>

      </Style.Triggers>
    </Style>
  </s:SurfaceUserControl.Style>

  <Border CornerRadius="{Binding CornerRadius}" BorderThickness="{Binding BorderThickness}" BorderBrush="{Binding BorderBrush}">
    
    <Grid>

      <ssg:SurfaceShadowChrome Color="{Binding ShadowColor}" Margin="{Binding ShadowMargin}" 
                               CornerRadius="{Binding ShadowCornerRadius}" Opacity="{Binding ShadowOpacity}"
                               Visibility="{Binding ShadowVisibility}"/>
      
      <Grid Opacity=".5" x:Name="MainGrid">
        <Grid.RowDefinitions>
          <RowDefinition Height="0.001*"/>
          <RowDefinition Height="0.005*"/>
          <RowDefinition Height="0.15*"/>
          <RowDefinition Height="0.011*"/>
          <RowDefinition Height="0.666*"/>
          <RowDefinition Height="0.012*"/>
          <RowDefinition Height="0.151*"/>
          <RowDefinition Height="0.003*"/>
          <RowDefinition Height="0.001*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="2.792"/>
          <ColumnDefinition Width="30.208"/>
          <ColumnDefinition Width="2"/>
          <ColumnDefinition Width="4"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="4"/>
          <ColumnDefinition Width="2"/>
          <ColumnDefinition Width="30.208"/>
          <ColumnDefinition Width="2.792"/>
        </Grid.ColumnDefinitions>
        <Rectangle x:Name="BackLeft" Fill="{StaticResource BackLeft}" Grid.Row="1" Grid.RowSpan="8" Grid.ColumnSpan="4" s:Contacts.ContactDown="Background_ContactDown" />
        <Rectangle x:Name="BackMiddle" Fill="{StaticResource BackMiddle}" Grid.Column="4" Grid.Row="1" Grid.RowSpan="8" Margin="-1,0"  s:Contacts.ContactDown="Background_ContactDown" />

        <Rectangle x:Name="BackRight" Grid.Column="5" Grid.RowSpan="8" Grid.Row="1" Grid.ColumnSpan="4" s:Contacts.ContactDown="Background_ContactDown">
          <Rectangle.Fill>
            <VisualBrush Visual="{Binding ElementName=BackLeft}">
              <VisualBrush.RelativeTransform>
                <RotateTransform CenterX=".5" CenterY=".5" Angle="180" />
              </VisualBrush.RelativeTransform>
            </VisualBrush>
          </Rectangle.Fill>
        </Rectangle>

        <Rectangle x:Name="TopLeft" Fill="{StaticResource TopLeft}" Grid.RowSpan="5" Grid.Row="1" Grid.ColumnSpan="3" />

        <Rectangle x:Name="TopRight" Grid.Column="6" Grid.Row="3" Grid.RowSpan="5" Grid.ColumnSpan="3">
          <Rectangle.Fill>
            <VisualBrush Visual="{Binding ElementName=TopLeft}">
              <VisualBrush.RelativeTransform>
                <RotateTransform CenterX=".5" CenterY=".5" Angle="180" />
              </VisualBrush.RelativeTransform>
            </VisualBrush>
          </Rectangle.Fill>
        </Rectangle>

        <Path x:Name="pathLeft" Stretch="Fill" Data="M32.963776,0.87616416 C32.963776,0.87616416 15.496788,7.1962952 22.251126,36.688207 22.251126,36.688207 25.092906,44.38683 24.086442,49.789652 24.086442,49.789652 23.336741,55.942344 17.148839,61.862492 17.148839,61.862492 10.22633,66.222897 4.5545865,86.294486 4.5545865,86.294486 0.37259673,100.18744 3.2021978,111.76567 3.2021978,111.76567 4.0668655,115.48056 9.6837963,121.74031 9.6837963,121.74031 19.659639,133.35105 35.392057,134.05624" Grid.Row="2" Grid.RowSpan="6" StrokeThickness="0" RenderTransformOrigin="0.5,0.5" Grid.Column="1" Grid.ColumnSpan="2">
          <Path.RenderTransform>
            <TransformGroup>
              <ScaleTransform/>
              <SkewTransform/>
              <RotateTransform/>
              <TranslateTransform/>
            </TransformGroup>
          </Path.RenderTransform>
          <Path.Stroke>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
              <GradientStop Color="#FF0017FF"/>
              <GradientStop Color="#000017FF" Offset="1"/>
              <GradientStop Color="#FF0017FF" Offset="0.009"/>
              <GradientStop Color="#6698A1FF" Offset="0.016"/>
            </LinearGradientBrush>
          </Path.Stroke>
        </Path>

        <Rectangle x:Name="pathRight" Grid.Column="6" Grid.Row="1" Grid.RowSpan="6" Grid.ColumnSpan="2">
          <Rectangle.Fill>
            <VisualBrush Visual="{Binding ElementName=pathLeft}">
              <VisualBrush.RelativeTransform>
                <RotateTransform CenterX=".5" CenterY=".5" Angle="180" />
              </VisualBrush.RelativeTransform>
            </VisualBrush>
          </Rectangle.Fill>
        </Rectangle>


      </Grid>

      <local:Mosaic x:Name="Mosaic" MaxWidth="{Binding MosaicWidth}" MaxHeight="{Binding MosaicHeight}" ItemsSource="{Binding}" Visibility="Collapsed" Margin="0, 20"
                  Grid.ColumnSpan="9" Grid.RowSpan="9" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5" >
        <local:Mosaic.RenderTransform>
          <RotateTransform Angle="0"></RotateTransform>
        </local:Mosaic.RenderTransform>
      </local:Mosaic>

      <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" Grid.ColumnSpan="9" Grid.RowSpan="9">
        <s:SurfaceToggleButton x:Name="ButtonTop" Visibility="{Binding IsEyeEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"
                             Content="SurfaceButton" Style="{StaticResource EyeButtonStyle}" Click="ButtonTop_Click" s:Contacts.PreviewContactDown="Button_PreviewContactDown"/>

        <s:ElementMenu Background="{DynamicResource DeckPropriétéAction}" Style="{DynamicResource PropertiesElementMenuStyle}" Margin="2,0"
                     PreviewContactDown="ElementMenu_ContactDown" Visibility="{Binding IsMenuEnabled, Converter={StaticResource BooleanToVisibilityConverter}}">

          <s:ElementMenuItem Background="{DynamicResource CardsRemoveFrontBack}">
            <s:ElementMenuItem Background="{DynamicResource RemoveFront}" Command="{Binding ChangeCardRemovingFaceCommand}">
              <s:ElementMenuItem.CommandParameter>
                <lib:CardInDeckFace>FrontUp</lib:CardInDeckFace>
              </s:ElementMenuItem.CommandParameter>
            </s:ElementMenuItem>
            <s:ElementMenuItem  Background="{DynamicResource RemoveRecto_Verso}" Command="{Binding ChangeCardRemovingFaceCommand}">
              <s:ElementMenuItem.CommandParameter>
                <lib:CardInDeckFace>AsIs</lib:CardInDeckFace>
              </s:ElementMenuItem.CommandParameter>
            </s:ElementMenuItem>
            <s:ElementMenuItem Background="{DynamicResource RemoveBack}" Command="{Binding ChangeCardRemovingFaceCommand}">
              <s:ElementMenuItem.CommandParameter>
                <lib:CardInDeckFace>BackUp</lib:CardInDeckFace>
              </s:ElementMenuItem.CommandParameter>
            </s:ElementMenuItem>
          </s:ElementMenuItem>
          <s:ElementMenuItem Background="{DynamicResource AddCard}">
            <s:ElementMenuItem Background="{DynamicResource CardsAddFrontBack}">
              <s:ElementMenuItem Background="{DynamicResource AddFront}" Command="{Binding ChangeCardAddingFaceCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckFace>FrontUp</lib:CardInDeckFace>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
              <s:ElementMenuItem Background="{DynamicResource AddRecto_Verso}" Command="{Binding ChangeCardAddingFaceCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckFace>AsIs</lib:CardInDeckFace>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
              <s:ElementMenuItem Background="{DynamicResource AddBack}" Command="{Binding ChangeCardAddingFaceCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckFace>BackUp</lib:CardInDeckFace>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
            </s:ElementMenuItem>
            <s:ElementMenuItem Background="{DynamicResource CardsDisposition}">
              <s:ElementMenuItem Background="{DynamicResource AuDessus}" Command="{Binding ChangeCardAddingPositionCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckPosition>Top</lib:CardInDeckPosition>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
              <s:ElementMenuItem Background="{DynamicResource EnDessous}" Command="{Binding ChangeCardAddingPositionCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckPosition>Bottom</lib:CardInDeckPosition>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
            </s:ElementMenuItem>
          </s:ElementMenuItem>
          <s:ElementMenuItem Background="{DynamicResource ActionsOnDeck}">
            <s:ElementMenuItem  Background="{DynamicResource Couper}" Command="{Binding BeginCutCommand}" />
            <s:ElementMenuItem  Background="{DynamicResource Séparer}" Command="{Binding BeginSplitCommand}" />
            <s:ElementMenuItem  Background="{StaticResource CardsTurn}" Command="{Binding BeginReturnCardsCommand}" />
            <s:ElementMenuItem  Background="{DynamicResource Trier}" Command="{Binding SortCommand}" />
            <s:ElementMenuItem Background="{StaticResource CardsSameSide}">
              <s:ElementMenuItem Background="{StaticResource CardsShownSide}" Command="{Binding TurnAllCardsToFrontCommand}" />
              <s:ElementMenuItem Background="{StaticResource CardsHiddenSide}" Command="{Binding TurnAllCardsToBackCommand}" />
            </s:ElementMenuItem>
          </s:ElementMenuItem>
          <s:ElementMenuItem Background="{StaticResource StackOrHeap}">
            <s:ElementMenuItem Background="{StaticResource HeapCards}" Command="{Binding ChangeDispositionToHeapCommand}" />
            <s:ElementMenuItem Background="{StaticResource StackCards}" Command="{Binding ChangeDispositionToStackCommand}" />
          </s:ElementMenuItem>

        </s:ElementMenu>

        <s:SurfaceToggleButton x:Name="MosaicTop" Visibility="{Binding IsMosaicEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"
                             Content="SurfaceButton" Style="{StaticResource MosaicButtonStyle}" Click="MosaicTop_Click" 
                             IsChecked="{Binding IsMosaicChecked, Mode=TwoWay}"/>
      </StackPanel>

      <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center" Grid.ColumnSpan="9" Grid.RowSpan="9">
        <s:SurfaceToggleButton x:Name="ButtonBottom" Visibility="{Binding IsEyeEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"
                             Content="SurfaceButton" Style="{StaticResource EyeButtonStyle}" Click="ButtonBottom_Click" s:Contacts.PreviewContactDown="Button_PreviewContactDown"  />

        <s:ElementMenu Background="{DynamicResource DeckPropriétéAction}" Style="{DynamicResource PropertiesElementMenuStyle}" Margin="2,0"
                     PreviewContactDown="ElementMenu_ContactDown" Visibility="{Binding IsMenuEnabled, Converter={StaticResource BooleanToVisibilityConverter}}">
          <s:ElementMenu.LayoutTransform>
            <RotateTransform Angle="180" />
          </s:ElementMenu.LayoutTransform>

          <s:ElementMenuItem Background="{DynamicResource CardsRemoveFrontBack}">
            <s:ElementMenuItem Background="{DynamicResource RemoveFront}" Command="{Binding ChangeCardRemovingFaceCommand}">
              <s:ElementMenuItem.CommandParameter>
                <lib:CardInDeckFace>FrontUp</lib:CardInDeckFace>
              </s:ElementMenuItem.CommandParameter>
            </s:ElementMenuItem>
            <s:ElementMenuItem  Background="{DynamicResource RemoveRecto_Verso}" Command="{Binding ChangeCardRemovingFaceCommand}">
              <s:ElementMenuItem.CommandParameter>
                <lib:CardInDeckFace>AsIs</lib:CardInDeckFace>
              </s:ElementMenuItem.CommandParameter>
            </s:ElementMenuItem>
            <s:ElementMenuItem Background="{DynamicResource RemoveBack}" Command="{Binding ChangeCardRemovingFaceCommand}">
              <s:ElementMenuItem.CommandParameter>
                <lib:CardInDeckFace>BackUp</lib:CardInDeckFace>
              </s:ElementMenuItem.CommandParameter>
            </s:ElementMenuItem>
          </s:ElementMenuItem>
          <s:ElementMenuItem Background="{DynamicResource AddCard}">
            <s:ElementMenuItem Background="{DynamicResource CardsAddFrontBack}">
              <s:ElementMenuItem Background="{DynamicResource AddFront}" Command="{Binding ChangeCardAddingFaceCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckFace>FrontUp</lib:CardInDeckFace>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
              <s:ElementMenuItem Background="{DynamicResource AddRecto_Verso}" Command="{Binding ChangeCardAddingFaceCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckFace>AsIs</lib:CardInDeckFace>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
              <s:ElementMenuItem Background="{DynamicResource AddBack}" Command="{Binding ChangeCardAddingFaceCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckFace>BackUp</lib:CardInDeckFace>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
            </s:ElementMenuItem>
            <s:ElementMenuItem Background="{DynamicResource CardsDisposition}">
              <s:ElementMenuItem Background="{DynamicResource AuDessus}" Command="{Binding ChangeCardAddingPositionCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckPosition>Top</lib:CardInDeckPosition>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
              <s:ElementMenuItem Background="{DynamicResource EnDessous}" Command="{Binding ChangeCardAddingPositionCommand}">
                <s:ElementMenuItem.CommandParameter>
                  <lib:CardInDeckPosition>Bottom</lib:CardInDeckPosition>
                </s:ElementMenuItem.CommandParameter>
              </s:ElementMenuItem>
            </s:ElementMenuItem>
          </s:ElementMenuItem>
          <s:ElementMenuItem Background="{DynamicResource ActionsOnDeck}">
            <s:ElementMenuItem  Background="{DynamicResource Couper}" Command="{Binding BeginCutCommand}" />
            <s:ElementMenuItem  Background="{DynamicResource Séparer}" Command="{Binding BeginSplitCommand}" />
            <s:ElementMenuItem  Background="{StaticResource CardsTurn}" Command="{Binding BeginReturnCardsCommand}" />
            <s:ElementMenuItem  Background="{DynamicResource Trier}" Command="{Binding SortCommand}" />
            <s:ElementMenuItem Background="{StaticResource CardsSameSide}">
              <s:ElementMenuItem Background="{StaticResource CardsShownSide}" Command="{Binding TurnAllCardsToFrontCommand}" />
              <s:ElementMenuItem Background="{StaticResource CardsHiddenSide}" Command="{Binding TurnAllCardsToBackCommand}" />
            </s:ElementMenuItem>
          </s:ElementMenuItem>
          <s:ElementMenuItem Background="{StaticResource StackOrHeap}">
            <s:ElementMenuItem Background="{StaticResource HeapCards}" Command="{Binding ChangeDispositionToHeapCommand}" />
            <s:ElementMenuItem Background="{StaticResource StackCards}" Command="{Binding ChangeDispositionToStackCommand}" />
          </s:ElementMenuItem>

        </s:ElementMenu>

        <s:SurfaceToggleButton x:Name="MosaicBottom" Visibility="{Binding IsMosaicEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"
                             Content="SurfaceButton" Style="{StaticResource MosaicButtonStyle}" Click="MosaicBottom_Click" 
                             IsChecked="{Binding IsMosaicChecked, Mode=TwoWay}"/>
      </StackPanel>

    </Grid>
    
  </Border>

</s:SurfaceUserControl>
